import request from '@/utils/request'

// 出入库明细项
export function listTransactionItem(query) {
  return request({
    url: '/system/transaction/item/list',
    method: 'get',
    params: query
  })
}

export function getTransactionItem(id) {
  return request({
    url: '/system/transaction/item/' + id,
    method: 'get'
  })
}

export function addTransactionItem(data) {
  return request({
    url: '/system/transaction/item',
    method: 'post',
    data: data
  })
}

export function updateTransactionItem(data) {
  return request({
    url: '/system/transaction/item',
    method: 'put',
    data: data
  })
}

export function delTransactionItem(ids) {
  return request({
    url: '/system/transaction/item/' + ids,
    method: 'delete'
  })
}

